1) Drag the WebStat, WebStat.config, and WebStat.format icons into your MacHTTP folder.
2) Double click on the WebStat icon.
The WebStat program will read your MACHTTP.LOG file and produce a summary file called WebStat.html in your MacHTTP folder. The output format is specified by the WebStat.format file.
The configuration file is used to set the following parameters:
LOG - input log file name
OUTPUT - output summary file name
FORMAT - file specifying output format
EXCLUDE - host names to exclude from summary
MESSAGES - turn message output on or off
ADDRESSES - specify long or short version of host name addresses
DOMAIN - specify name for domain codes
DNSLOOKUP - look up numerical addresses using domain name server
Read WebStat.config for more details about configuration.
The program is provided as is. The source code can be modified or included in other projects provided due credit is given to the author, Phil Harvey.
The included binary file was generated using Symantec C++ 7.0.
Notes:
1) Previous to MacHTTP 1.2.5 the number of bytes sent was not reported, so you can expect to see zero's in the number of bytes transferred fields for older log files.
2) If you want to check your server statistics from a remote computer by downloading your log file using Mosaic, you must add the line "TEXT .LOG TEXT ttxt text/plain" to your MacHTTP server configuration file. Otherwise the text will be reformatted and WebStat won't run properly.
3) If you want to run WebStat automatically at preset times, use the Cron utility by Mark Malson. You can get a copy from any Info-Mac mirror, or download it from me at "http://snodaq.phy.queensu.ca/Cron.sit.Hqx". If you use this utility, make sure MESSAGES is "Off" in the WebStat.config file or WebStat won't terminate automatically.
4) If you have any problems running WebStat, turn "MESSAGES On" in the config file and try running it again. The printed messages may help you to locate the problem.